import tensorflow as tf
import matplotlib.pyplot as plt
import numpy as np


def plot_image(images, labels, class_names):
    fig, axes = plt.subplots(3, 5, figsize=(12, 6))
    axes = axes.flatten()

    for image, label, ax in zip(images, labels, axes):
        ax.imshow(image)
        ax.set_title(class_names[np.argmax(label)])
        ax.axis('off')

    plt.tight_layout()
    plt.show()